home *** CD-ROM | disk | FTP | other *** search
/ Aminet 22 / Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso / Aminet / dev / src / ConfigFileSrc.lha / ConfigFileSrc12 / Library / Utils.h < prev   
Encoding:
C/C++ Source or Header  |  1997-10-02  |  788 b   |  44 lines

  1. /*
  2. **        $PROJECT: ConfigFile.library
  3. **        $FILE: Utils.h
  4. **        $DESCRIPTION: Header file of Utils.c.
  5. **
  6. **        (C) Copyright 1996-1997 Marcel Karas
  7. **             All Rights Reserved.
  8. */
  9.  
  10. #ifndef UTILS_H
  11. #define UTILS_H 1
  12.  
  13. LONG GetFileSize ( BPTR );
  14.  
  15. STRPTR NewStr ( APTR, UBYTE );
  16. VOID DelStr ( APTR, STRPTR );
  17. STRPTR DupStr ( APTR, STRPTR );
  18. //STRPTR DupStrF ( STRPTR );
  19.  
  20. #define IsMListEmpty(x) \
  21.     ( ((x)->mlh_TailPred) == (struct Node *)(x) )
  22.  
  23.  
  24. #ifdef CF_FUNC_DEBUG
  25. #define FuncDe(a)    a
  26. #else
  27. #define FuncDe(a)
  28. #endif
  29.  
  30. #ifdef CF_STEP_DEBUG
  31. #define StepDe(a)    a
  32. #else
  33. #define StepDe(a)
  34. #endif
  35.  
  36. SaveDS VOID bug ( STRPTR , ... );
  37.  
  38. APTR DEBAllocPooled ( APTR, ULONG );
  39. APTR DEBCreatePool ( ULONG, ULONG, ULONG );
  40. VOID DEBDeletePool ( APTR );
  41. VOID DEBFreePooled ( APTR, APTR, ULONG );
  42.  
  43. #endif /* UTILS_H */
  44.